Fix ContentProvider query bugs.

In two places the wrong fields were used for querying the SQLite
database. Fix these issues.

Change-Id: I62c3a9998ae0abcc18bb2c89a9182183fddea683