add general mysql query function into mysql.php