add fid and some fix to gpxImporter.sql function