insert package working

minor update, fixed the packagedb class