Add "OR REPLACE" prefix conditionally