Split Token DB API into separate file

Done for separation of concerns, and to bring our DB access for
tokens in line with the rest of our database abstraction.

Change-Id: I62508dc3ef847e5df6f9c2e6e63d5d42cf5da5f0
Merge "Split Token DB API into separate file"