purge db for foreign keys