fix permissionsex's db