Update Record class with static getSql() method