Create assignUniqueID and make getEntity

-- make and implement assignUniqueID - only does so if necessary,
implemented in save() method
-- make getEntity - needs testing!