cleanup, implement experimental pkg database shrinking