changed the database file to config file