adding code to pick the persons names from the database