Refactor DatabaseConfig to MongoConfig and use singleton design pattern (#20)