Goliath was a Biblical figure who was slain by David, despite the latter's smaller stature and inferior weaponry.
In 2376, The Doctor on the USS Voyager determined that a pathogen had killed all the adult Borg drones on a cube in the Delta Quadrant. In showing the pathogen to Captain Kathryn Janeway and Tuvok, The Doctor remarked, "Behold! The David that slew our Goliath." (VOY: "Collective")
In the script for "Evolution", Captain Jean-Luc Picard admitted that he felt like Goliath facing David. This was changed later to Gulliver being overpowerd by the Lilliputians.