Soreness or a spasm as you describe it, may occur in the lower abdomen, back, or sides during an episode of UTI.
A urine that is released may be tinged with blood during this time.
Feeling that you are unable to urinate fully or urination hesitancy usally occurs in chronic and recurrent urinary tract infections.
Ketones in urine can result from the type of diet (diet high in proteins, or diet low in carbohydrates), starvation or fast, or may indicate uncontrolled diabetes.
People with diabetes tend to have more frequent UTI's, since the high blood sugar levels is a predisposing factors.
If you start to experience fever, nausea, vomiting, chills, severe abdominal and back pain, see your physician as soon as possible since these symptoms may indicate spread of the UTI to the kidneys.
Best wishes!
Marija