Fix incorrect str_replace preventing import of database triggers.