setting up the db