Improvements in pg1. Now it inserts also keywords in the database. And creation of pg2, partial version