Cantrip persistence layer in mongodb, modeled after firebase