bug 1632621: Narrow database exception handler
bug 1632621: Narrow database exception handler

Restrict the API database exception handler to pymysql.DatabaseError
(such as DNS failure and rebooting databases) and
sqlalchemy.exc.DBAPIError (such as the missing database table in tests).

mozilla/ichnaea,mozilla/ichnaea,mozilla/ichnaea,mozilla/ichnaea