Fix typo preventing the view from being rotate on upgrade.
Make db connection client remember for which documents it already had triggered
the asynchronous upgrade hooks, thus reduce the number of conflicts later.