Changed new model() to ClassRegistry::init and improved the index console task