Fixes #3268, #2783 - Update prod2dev to handle fkeys in psql