Refactores the db file to configuration.