changed position of mongo connect & app listen