Avoid calling readFromDatabase in source mode

In source mode there is no database cache,
so we do not need to call readFromDatabase there.

Change-Id: I791eab923f5ed6e0a3e28dbaf49ba1ae8fdb6cdc
Merge "Avoid calling readFromDatabase in source mode"