Fixed bug, perform initDb() when asking for session id/key