Changed implementation of KeyvalueDb stored variables to instance level instead of class

Allows multiple instances of KeyvalueDb to be used if the need arises
Added long awaited (but still primitive) lists functionality for grouping of keys