This modification is designed to fix a bug for orm storage

For ORM storages, the tablesExist method will return false everytime because the array passed as parameters should only contain table names instead of the whole structure. Otherwise it will use the ClassMetaDataInfo's __toString method which will not always return the table's name.