Fix problem with postgres restore