Fix the table generation for string ids

/to @ritch 
/cc @chocstarfish

See https://github.com/strongloop/sls-sample-app/issues/44