reset file pointer if the file is smaller
parse_line small refactoring
refactor fields in insert_data
Add referer field support