Create queryJarId() so that it can be re-used. Also, use session so that there is no nested session in Slick runtime.