Remove dead code
Close cursors
Merge remote-tracking branch 'origin/atnnn/reql_admin' into josh/reql_admin