Update the Record class with the static getSql() method