Grant privledges correctly too