use mongodb uri instead of host/port to connect
add mandatory invokeLater