removed unused sql