JSON based database implementation