Removed old sql implementation