save to DB from viewer