Database interface in C using libpq.