async def get_metadata(self) -> Dict[(str, str)]:
    cursor = (await self.db.execute('SELECT key, value from peer_metadata'))
    metadata = (await cursor.fetchall())
    (await cursor.close())
    return {key: value for (key, value) in metadata}
async def get_metadata(self) -> Dict[(str, str)]:
    cursor = (await self.db.execute('SELECT key, value from peer_metadata'))
    metadata = (await cursor.fetchall())
    (await cursor.close())
    return {key: value for (key, value) in metadata}