set up database file