Add support for file storing with MongoDB