change sql method