Viewed state fixed, updating db.