reverted sql change