Database as json and redis