created models, added database, made home.html work with variables returned by views