Update config and database file