save status to db