Added and completed sql_queries.php
Integrating with database.