I've moved the overlay configuration part after the database configuration part, but I still get the same problem - adding the second entry fails due to a constraint violation when it should succeed. Is there anything else I can try or should I file and ITS?
Apparently, you hit ITS#6077, so you don't need to file a new one.
p.