finishing up db_functions.php