use autocommit for db