More database debugging relating to library management