Prepare database file for interacting with database