handles mongoDB by using small files option