add unique constraint on transcode name, key

add unique constraint to transcode table to avoid double entry and
ignore key errors on insert. this way double entries on clusters with
multiple nodes inserting transcodes at the same time dont result in
double rows.

Change-Id: I6358d5bec241f8fc57e5a04bad753e6fedf7fda1