SQL dump and correction in works edit form