Updated app so that queries are logged only if explicitly set. Updated the dev environment config file so that it would set LOG QUERIES to true by default.