cleaned sql