Fixed DAL problems, modified viewBooks controller and script