Analyze and optimize the queries present under the modules. The queries are present in 2 files- Views.py and Handlers.py of the Central Mess Module.