fix save dbs with routines, events and triggers