change default sql query