Small change in the way mysql data is read