fixed activitiy items: to DB and from DB to PDF