move mongo connect into app startup w/ keepalive option; fix rendering local for new express version