Refactor api.game to use db2

resolves #41