Change toname to touserid in the definition of the status table