python, templates - models: load all data from database, add footer