Added API for SQLs