'Return an existing package based on id.'

@classmethod
def from_id(cls, id, cursor=None):

    cursor = (cursor or cls.db)
    return cursor.one(u'SELECT    packages.*::packages    FROM    packages    WHERE    id=%s', (id,))
