update permissions db layout