Attempt to consistently and sanely handle database permission issues