New get-models function

- Will be use when creating indexes