anonymous function in server.js mongoose connect