fixed warning in backend mongo connection