Making sure that we pass the dbid on all calls
Fixing docs
Properly record the appropriate db id when needed
Exposing database id on the stats