changed mongo schema to match secure