add db and user stuff

Borrows files from another application to get started with user and db
stuff