Fixes transactions and auto commit.