protect against duplicated items in the DB

Objects are created with get_or_create(…) which isn't atomic, so
protect a get(…) call in case the DB has multiple results.
This is one possible workaround for this case.