added foreign key on POSTs