Refactored ActiveQuery::createModels() to avoid duplicated models

`join` exists only for relational database. Active Record for NOSQL will be broken.