Delete some unused sql