InputResolver, adjusted method with guard so the local database is only searched once in an instance and the results are available for the attributes as needed. Also pulled Template class and adjusted code so a dict is created of all details needed for html page.