indenting
In pgsql_simple_state_result() be sure to progress the sql state.

Drop back into waiting after our result so we can properly read out
the completed state.