Added method for easy execution of dynamic SQL queries. Eventually, move everything over to this