new grant script to grant the user replication rights