I\'d like to be able to extend psycopg2.DatabaseError and perform the following handling:
psycopg2.DatabaseError