Add missing projection columns.

Add projection columns for internal_id and priority, which were missing
and causing crashes during database queries.

Change-Id: I51882868cb374649f89bf3a5b78e693cf8d3d470