Integrate database with history.

Bug: 31623549

Note: This CL operates under the assumption that there is something
in the current expression field (handling for various states of
CalculatorDisplay in ag/1613446)

Change-Id: I70992067ddc9c5eec079f00604549727787e26fe
9 files changed