spit to mongo, multiple bugs fix

mongo writing, still to be tested
fix: when `:conditions` is nil, cannot generate bolts names
correctly
fix: when any keywords list is empty, cannot generate topo def
correctly, cannot ignore useless bolts