using mongo as db