GID, gid_rowindex support, LIMIT support
Add close cursor function, offset support
Added sort functionality

Specifying nosort speeds up gid_rowindex creatkion
Added gid, gid_riowindex column detection