Has anyone seen PHP DB adapter code?

The fetch API does not tie into collections, it allows you to interface with an external service/site. You will need to implement http-functions on your side as query endpoints for the fetch queries originating from your Wix site.

This example illustrates how to expose and consume an API:

Expose and Access Site APIs
Use MyApi and MyApiClient to expose and access external APIs.