add sql enhancements
Merge remote-tracking branch 'origin/master' into solo