psql grant bug fixed