auto populated patients table