drop foreign keys
fixes query
all in one migration script