Added support for getSql method