database.py: Fixes top_url not set correctly.
testing/goodapp.py: Adds infinite handler for manual testing.