Fix for flawed logic, and also, commit the DB transaction so that the DELETE query actually gets executed.
Fix for flawed logic, and also, commit the DB transaction so that the
DELETE query actually gets executed.

nigeljonez/newpyfibot