change pw and create account ported to Postgres