a few sql framework enhacements