do ghost tables checks when the database has no tables