adding conditional for mongo read_only user