Fixed read database override for anonymous users.