psql replace func. works differently