Revert "[upgrade] don't create postgresql in "pre" script"

This reverts commit 2561c51b003ac5d14cb3d69c2d0ed83c4c9d0625 before in
fact it was the right way to do. It just missed the UID/GID options in
commands.
[upgrade] ensure postgres user/group have rights ID