psql change owner and perms snippet