replaced int to unsigned long long where record_id