Now the program will record the next until time(write to config.json) after writing data to database.
'config.json' add 'isRecord' and 'until' field.