Who commissioned Donatello to create the bronze statue David for the court of the Palazzo Medici ?
It was moved to the Pitti Palace in the 17th century , to the Uffizi in 1777 , and then finally , in 1865 , to the Bargello museum , where it remains today .