library support for database