Only show the 'DB needs repair!' notice when logged on. Fixes #1046. Fixes #1060.
Missed a 'getToken' in 141338adb.