Override default db error handling in upgrade.php (fixes #481)

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>
Merge pull request #489 from Oldiesmann/release-2.1

Override default db error handling in upgrade.php (fixes #481)