updated script to dump psql as well
script to update BETY database (redmine #1670)