Fixed transaction bug in MongoDB backend (save and delete cache would not get cleared after committing a transaction).