commit foreign keys