manage case where mongodb collection not yet created