add gorm writer support

helps with writing to the database and what not
basically replicated what we did with EntityIteratorWriter