SQL enhancements