Store file data in the database using ActiveRecord.