removed old sql stuff