fix gorm writer

you cannot iterate over the properties of a gorm object without
accidentaly calling a bunch of hardcore select count(*) statements
Merge pull request #18 from metridoc/dont-iterate-over-props

fix gorm writer