This error is not particularly db-related. Suggest moving to `helpers/file.php` and calling it `FileNotWritableException`. Also, all exceptions must end in `Exception` to be consistent with the rest of the codebase.