Treat all psycopg2.DatabaseError the same.

Sometimes division by zero are reported as OperationalError rather than
DataError.
Merge pull request #264 from EverythingMe/fix_data_error

Treat all psycopg2.DatabaseError the same.