'Returns the metadata dict for the database. The metadata dict values
are tuples of (value, timestamp) where the timestamp indicates when
that key was set to that value.'

@property
def metadata(self):

    metadata = self.get_raw_metadata()
    if metadata:
        metadata = json.loads(metadata)
        utf8encodekeys(metadata)
    else:
        metadata = {}
    return metadata
