Fixe some errors and work on command directpublish link and fact_pq