Add query via JDBC directly