improved isDatabaseTableName()