update sql for remove unused column