Get or create

Use get_or_create to reduce duplicates in the DB. Note this won't remove all chances of duplicates, as get_or_create is not threadsafe either.