Traditionally we tell people to avoid mocking the database, and we
haven't make a centralized way to do it. This has just led to it being
done poorly and verbosely in a lot of different ways.
So, add a MockDatabase class.
Change-Id: Ie420f2b42ee7d047378221c519845f7261c20c28