Implemented basic DB Query in views.py

Implemented code to allow simple query with gender filter. Have not
refactored.