add function to query in DB_Function.php