Models.py queries defined 

First attempt at defining queries and displaying dynamic statistics.