David Berwick, son of William Berwick and Mary Imrie who was baptised in the parish of St Andrews, Fife on 12 April 1826 (according to the source on the profile) died in Elie, Fife in 1897. (Death Registration: "Statutory Register of Deaths," database, National Records of Scotland, Ref: 427/6, [
https://www.scotlandspeople.gov.uk/ ScotlandsPeople] (accessed 5 April 2024), Surname: BERWICK; Forename: DAVID; Age at death: 70; Mother's Maiden Name: IMRIE; Gender: M; Year: 1897; RD Name: Elie.)
Working back through the various census returns would help to identify which wife(s) and children, if any, belonged to him. I've updated the profile with the date, place & source for his death.