The autocommit flag now uses the postgresql autocommit feature

This brings back autocommit, but it only has 2 stages now. On
or off. As this is now fully handled by the database it's slightly
safer to use.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>