Added SQL to turn_push.php, also fixed some minor issue on handler.php for SQL query