Added query logging to the MySQLi Class