small enhacing of db connections and sql generation
driver and sql strategies for data access