now possible to parametrize sql generation with options