use getSql instead of getSqls