add code in DB for TypeQCM and TypeOpen