Migrate to PostgreSQL/ActiveRecord datastore.

Current spec status: 62 examples, 0 failures in 1.06 seconds.