Started translating owner queries to JDBC.