Fix the joining of the 'table' table in the db topology