added select_related
Merge pull request #466 from ar4s/improvments/reduce-sql-queries

Reduce SQL queries