remover funtion show query
optimize code for oracle database