Added SPI package 
Refactored realm to create MongoClient from MongoCllientFactory
Completed test