Updating database to get a doctor who worked a shift on a day