Look like, based on the message you got in the log file, that your AMS Database is either corrupted or the ADNM is not able to access it.
The question is, have you change anything on your server that would change the SQL ressources for the ADNM ?
Such as, installing a new SQL update, services, etc....
Change the User/password for Avast!
You can use the "Maintenance AMS" feature (in the Avast! Management Tools) to check, modify, restore, delete, create the Avast! SQL Database.
I think that you will either solve your problem or find a solution using these tools.
Just make sur you know what you are doing before erasing your existing database....
Good luck !