Changed the way how data are retrieved from MongoDB - now it should be much faster