Implementing a mongodb settings storage class