adds purpose column to db and new|edit