Fixed: Restore.pl bugs on Postgresql restore failed on DB (bug#10249).
Squashed commit of the following:

commit 973414d2d8b00731d8d094e840bfed1a070d8b37
Author: s7design <otrs@s7designcreative.com>
Date:   Tue Feb 4 00:23:45 2014 +0100

    [Bug 10249] Restore.pl bugs on Postgresql restore failed on DB

    Added part of cod for set password via environment variable