Use autocommit with db connection