Creating configuration for MongoDb-adapter + project for specs + slight refactoring