added constructor for jni-queries