set up database, WIP