adding commit() to sql connection so that update command works.