database functions, and a functions.php file