Use the right DB in getOriginalEmail() instead of the sharedDb

Change-Id: I344cb6f115824d9c8f4da4b8ac9b6ae9e8aae5a4
(cherry picked from commit 35b13e88f4cd2bd4743103ae07a1a4fc51e5671a)