Added commit to the sql database transaction