add gorm writer support

helps with writing to the database and what not
Merge pull request #3 from metridoc/add-gorm-writer-support

add gorm writer support