connect to database file