c-dax is a C library for accessing SQL databases using a uniform programming interface. It's designed as a lightweight wrapper, with both static binding and dynamic library API. Supports SQLite 3, PostgreSQL 8.3, and MySQL 5. Check out c-dax if you want