Working queries, need to do a bit of cleanup on freezing result sets/tracking connection status.