Use a mongo backend if available.