Added INDEX(time) to access_data table.