Use ActiveRecord for data storage (add Corpora model as well)