func writeLastVersion(d *db.Database, flowName string, version string) error { _, err := d.PutValue("_flow:"+flowName+":_lastversion", version) return err }