cleanup package database