Fixed db command.Dispose(), statusbar stuff

This is why I need unit tests...