Refactored parsing of ResultSet

Created a new function to specifically parse through ResultSets returned
by the JDBC and return Object[][]