Added missing foreign keys
Merge foreign keys on MySQL and PostgreSQL