Stream namespace was missing from some table name declarations.

It looks like some of the statements used in database queries were missing the stream namespace, which was causing a "table not found" mysql error.