removed old sql