Creates server and sets up mongoose