Set index and type in queries.
Start to figure out saving of the model.