When switching on 'Created', also reset to NULL the filesize
Detect in the offset_thread if the file is being written and modify the RDBMS accordingly