added enum for MongoDB.
bugfix of compiling.