Fixed issue where pg database is not updated properly when editing.  Fixes #4138