Repsert and replace are implemented for #6 and #5