Update db auto commit only for postgresql. PEP8
Removed unused code from events fields.
PEP8