fix: ORM-1315 fix external tables empty db check (#5569)
When not using multi schema the "is the database empty" check during
migration creation was failing on postgres and sql server because the
check does not correctly treat namespaced table names.
This was missed due to an incorrect test case that did not account for
the namespacing behavior.