Added routing logic to app.py. Repopulation function added to setup.py.