on EOF, check if sincedb should be written