Testing sql statement that is sent.