removing debug - still debugging sql