Added a SQLQuery function to refactor all of my SQL queries and to eventually update to PDO