added a generate package id method

added it to the packagedb class