This code gets all foreign key constraints of a database and creates the appropriate drop or create statements. It is also possible, to restrict the statements to