set up database to be used with classes