some idb calls, mapping of objects based on _design docs