With Ivan's help I was able to find out why my dump didn't load after changing my code. But now I got a new problem. Methods and functions are in the database that comes from the dump file. Triggers and links are missing. Is this a feature or a bug?
Adding triggers back is not a problem. But how would I do that for links when data already exists in the tables?