Fixed Mongo-related memory leak. Added DB pool size configuration property.