Converted to using Sequel models instead of Datasets.