rename config setting to be less misunderstandable
add some DB hygiene cleanup code

Add new methods to the classes Stdlib, StdlibPending
and StdlibRelease that detect problems in the DB and
remove them. Make sure they are called by adding the
respective calls in the respective files.