change resource tbl to mongo driver