Creates permission table