MacaronDB is a project which provides a set of classes for manage several databases like DB2 (DB2 for IBM i, and DB2 Express C), and MySQL 5. 
The project is under New BSD license.