Add aux script for cleaning database
Properly set package state to resolved/unresolved
Fix comps parsing