update the sql and problem