fix `flok init` when using the mongodb driver for state