Updating database in config