Simple MySQL query result to array of objects conversion