create static files, seperate database functions
add tests