Refactor api.room to use db2

resolves #43