Application of database class for creating library