removed pdb
disabled cursor timeout as this led to not reading all agenda items (and potentially other records)