Fix raw_data link_id bug.

When creating a new raw_data object don't instantiate the UUID, just
provide the function to call. This fixes the issue where a new raw_data
is always linked to the first one that is uploaded after a server restart.