Update app.rb

Fixed mongodb connection environment variable hook