Fixes for prev/next event links so that they use listIcalEvents function from dbmodel.php.