Extensible library for database access