Fix EZP-21479: errors importing ext. sql files