fix ImemDb support for non-public tables