The data will be returned as an associative array with the id of the data as the key, and the data
as the value of each key. The value will be stored as a copy of the original data. setData must be
used to update the data.
An empty array will be returned if no data of the given type is found.