ActiveRecord implementation for iOS using TouchDB