The latest changes with all database functions in model.py and more web page logic.