set up the database