[BUGFIX] Decrease memory consumption by fetching records from \mysqli_result on demand, not upfront

Same issue as #26, same solution as in #35