repaired database grants