The accessibility database has been protected with SIP since macOS 10.12 and there doesn't seem to be another way to configure this programmatically.