Our own implementation of Ruby's active_record, specifically for sqlite3