[fix] Passing IDs to foreign key