Move from Mongo to ActiveRecord

We're not really using any features of Mongo, and it's a barrier to adoption. I think we should migrate to ActiveRecord, and work hard to support any SQL database.

I probably won't tackle this migration any time soon, but I would love it if someone else did!