Dropped assertion on SQL DB exception message, because the message is DB-version dependent.
Pep 8 cleanup.