added method getLibraryByID(int id) to LibraryDaoImpl