mongodb loop insert when condition is true