I wanted to use a no sql database at the beginning. However, I prepared an interface first and implemented as MongoDB. We can implement the interface with PostgreSQL for example. I really appreciate PRs :) Here is the interface we can implement for other databases.
Because MongoDB is a document store and you really only need a key/value store for this.
Also because MongoDB started life preferring speed vs durability, which is a bad look for a database. They may have fixed that now, but I cannot forgive them for that.