add RAW() regex and replacement, copy data returned from the DB into the record before returning