use the correct dbo
Merge pull request #4318 from okonomiyaki3000/tables-using-wrong-dbos

Use the injected dbo when referencing a Table object from another table. Fixes #4318.