db class bugfixes
debug info for db update
cleanup