(bug 13745) Fix regression from r33133 by changing INSERT to REPLACE