Database access

How would you add database access using JUCE?

I’m currently writing some wrappers around ODBC 3 (sqlext.h) and I can’t see any other way to do it. Horrid C interface that ODBC.

How would one go about adding ADO or whatever? I’ve tried but it keeps wanting an MFC app or something. (get “cannot overload WinMain” errors)

Anyone got any alternatives?