Fix for weird DB permission error