def METHOD_NAME(self, WayId, dump_sub_elements=False):
    self._PgCurs.execute("SELECT nodes, tags FROM %s_ways WHERE id = %d;" % (self._prefix, WayId))
    r1 = self._PgCurs.fetchone()
    if not r1: return None
    data = {}
    data[u"id"]      = WayId
    data[u"nd"]      = r1[0]
    data[u"tag"]     = {}
    for i in range(len(r1[1])//2):
        data[u"tag"][r1[1][2*i].decode("utf8")] = r1[1][2*i+1].decode("utf8")
    if self._user_patch and "user" in data[u"tag"]:
        data["user"] = data["tag"].pop("user")
    return data