Updates to registerCollection

Defualt primaryKey to 'id' was not working correctly.
Default to columnName value instead of the key value.