fixed NPE if "latest" is used
[postgresql] fixed wrong usage of username/password parameter