How to Use An Existing MongoDB with Grav?

Hello

I want to know if it is possible to use an existing MongoDB with Grav. I came from KeystoneJS CMS and want to move the MongoDB to Grav flat-file CMS.

Thanks in advance