Remove most of gittip.db (except elsewhere).

Ref #1528.
Finish removing `gittip.db` global.
Merge pull request #1734 from gittip/db-global

Remove `gittip.db` global