Sql improvements

Add support for configuration of relevant SQL columns