put all functions into functions.php, included that in the other files
added database functions: db_connect, db_get_field, db_get_pw_hash
renamed db_get_pw_hash to get_pw_hash, added db_set_field, set_pw_hash, set_password (not in use yet)