LibraryDaoImpl.java refactoring