update version field when inserting.  fixes #347