post request new session works if db on localhost