save ll_db earlier so that input_module won't die on empty input