added potential fix for db permission error