added publication flag and jobtype to be insert in database