hack to make mydb-expose work without connect session middleware

hack to make mydb-expose work without connect session middleware