How to setup a foreign key in mysql