creating a class to update or create the packages on database