FREEPBX-7155 - REPLACE INTO is much slower than an UPDATE. Also on newer versions of mysql our sql will fail if the id is not set when calling REPLACE INTO