The CapabilityAccessManager database is corrupt, that cannot be accessed or deleted in the normal way, please follow these steps carefully to delete the database, Windows will then regenerate a new database file automatically.
Boot Windows into Safe Mode.
Click your Start Button, then just type cmd and on the resulting list, right click Command Prompt and select 'Run as Administrator'.
Run this command in Command Prompt and press Enter:
takeown /f "C:\ProgramData\Microsoft\Windows\CapabilityAccessManager" /r /d y
Run this command in Command Prompt and press Enter:
net stop camsvc
Run this command in Command Prompt and press Enter:
icacls "C:\ProgramData\Microsoft\Windows\CapabilityAccessManager" /grant administrators:F /t
Run this command in Command Prompt and press Enter:
del "C:\ProgramData\Microsoft\Windows\CapabilityAccessManager\*.db-wal"
When that command completes, close Command Prompt and restart Windows in normal mode.