several optimizations and fixes for MongoDB ORM process, mainly about BLOB storage