SMS api changes

changes done to Sql class and api