Removed old sql