more fixes, enabling trusted client ids be saved in the mongo db