Use mongo as database