Database with permissions rebuilt