move the code relative to the local package entry database in a separate class