Fixed problems creating users and databases in postgres