Updating user controller to use connection rather than mongoose global