FreePBX lost connection to database and asterisk

Thank you. I also think this is a permission thing. What user and what group is supposed to have access to the recordings? Or is there a way to have the system rectify it self?