Moving initialization out of query result wrapper's init, only executing
when a row has been returned.