You could write a driver for peewee-orm. If you want a general solution you would still need to write a dialect for different databases as peewee needs now for postgres, sqlite etc.. Check out popular ORM Mappers like Hibernate or Eclipselink. For each DB you need a proper JDBC driver and a matching dialect.
If you're going to implement something like that please be invited to also contribute to JayDeBeApi if you get to the limits of my library. (It's newest version is hosted at github
https://github.com/baztian/jaydebeapi)
Regards
Bastian