Update db_functions.php