Make db.fakes stub out API not sqlalchemy

We shouldn't be stubbing out the backend db implementation, and instead
be stubbing out the db.api itself. One small step in making us less
sqlalchemy dependant.

Change-Id: Ifb2c45353edc281456e7407dd36b4cc4feea1ac0
Merge "Make db.fakes stub out API not sqlalchemy"