add basic database stuff (need to add tests)