Wait for MongoDB to connect before starting App

Prevents:
  Error: Error setting TTL index on collection : sessions
Merge pull request #2 from malixsys/patch-1

Wait for MongoDB to connect before starting App