removed dead sql