master-slave replication helper for ActiveRecord.