Fix mongo inserts for projects and PQs