fixes #3268, #2783 - Update prod2dev to handle fkeys in psql
(cherry picked from commit f2cddb6be2e68958350081c72068c79ca26a656b)
fixes #3268, #2783 - Update prod2dev to handle fkeys in psql
(cherry picked from commit f2cddb6be2e68958350081c72068c79ca26a656b)