Add foreign key schema dump and restoration and improve dump format by cleaning up some unnecessary whitespace.