Reuse them code
Sqlite + ActiveRecord