added max file limits, store extra data into column additional_data