Thanks for query.
You have not mentioned your age.
If you are around 60,you might have enlarge prostate
as you have residual urine.
Otherwise you might have urinary infection as you have frequency and bad odour urine,
Go for urinetest and culture test.
After go for long antibiotic course.
Take plenty of water,
Ok and bye.