Refactor: promises for models y engines, api now return an object instead of array