Added scheduler. Updated database. Added more functionality to views.py