setup the database