Don't send out SQL error on upgrade to 1.8.1

Fixes #449