Hi!
It looks like you somehow lost access to your database…
Maybe you could try the same thing that person did: Freepbxuser unable to connect to asteriskcdrdb ?
Please do a copy of those files before playing with them though and let us know how it turns out…
Have a nice day!
Nick