Properly fills out table based on php data