private fun in config, stronger sql