Added con.commit() where needed