C library for database access using an object based abstraction layer