Write new status to database on return