Add unit test for reading the writing SQLite. Fixes JIRA issue GEOT-4653

Includes fix to sorting when using database based drivers that pass SQL straight through and thus dont have access to FID which is OGR SQL. Also adds LayerGetFIDColumnName to the OGR interface.