add config to database