Removed global $gt, set to return value.
Returns the flush response.
Closes cursor before executing statement. Fixes #84, but more work will be done on this area of code for #43 before beta release.