delete unused function in the sql