added columns as slice to sql repo and functions to generate SQL parts based on them