database to configfile