fix startup session server with mongodb connection