added extension that can support SQLQuery better.