more queries defined in sql.php