remove sql select statement