Added resultset to obj conversion code