comments and formatting
navigation
urlPattern changed for testing
added db resource
now a switch...
init