Change ActiveRecord syntax to Sequel syntax