optimize, sample use permissions, use permission in config, roles in file, add table value exists, update user helper