Id, sqlite command line, gctx data enclosed by quotes, superfluous whitespace

Node name should be Id, not id.
Sqlite commands need to have column names enclosed in quotes.
Some data from gctx files may arrive with enclosing quotes.  If so
another pair should not be added.
It is not necessary to repeatedly call str()
Numerous extraneous spaces at end of line were removed.