Set model relations
Rewrite database scheme for optimal queries
Add search by rang