Fix config for database