Combine tomatoes, onion, salt, sugar and basil in a skillet. Simmer 10 minutes. Combine flour and water; add to skillet and cook until mixture thickens.