Treat all psycopg2.DatabaseError the same.

Sometimes division by zero are reported as OperationalError rather than
DataError.