Added auto commit so that UPDATE query will not lock the table.