Microservice is a monolith. So what you're describing is essentially: I've got a few front-end microservices tied to 1 huge microservice I call the database.
There's no "data layer" that is managed outside the microservice. It _is_ a microservice.
That's one of the reasons Google uses a monorepo: any microservice can easily import a database instance and start using it as part of it's structure.