Minor stuff; don't allow a negative time, fix wrong version in upgrade, better db fail msg