Decoupled db layer from JsonRestStores completely. To be tested.