Added extra regex matching for queries

Need to do more research into MySQLi, PDO and Prepared Statements.