DEVIDM-131: Inject a Sql object to the query class to simplify the flow.