First implementation of library database