homework5 now executes the tcph query.