admin table population logic