got a session error after the upgrad. Moved the initialization of the db in a boostrap.js file and the session in the client