Add cursor based ResultSet to query the database