WFA3.0 and above provided WFAConfig cmdlets to do this for you. Its done to avoid the need for users to manually edit the configurations files. Read more about them in WFA Installation and setup guide.
WFA3.0: Open WFA\bin and launch ps.cmd to launch a powershell console with WFA modules loaded.
Set-WfaConfig -Name DBAccess -Enable $true
Restart service when prompted for.
In WFA3.1+ in addition to the above, you can also use
1. Open a cmd.exe and go to \WFA\bin.
2. There is a wfa.cmd uitility avaibale.
./wfa --db-access=public --restart
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.