mysql record reader