Errno: 121 Got this when trying to add a key/foreign key. You cannot have two key references with the same name in a single database, even if they are on different tables. Each key reference name has to be unique