enhancing sincedb flushing

enhancing sincedb to properly flush when files have been read from, while preserving the sincedb_write_interval