Jewish History: Biblical History: David and Jerusalem:
Did David found Jerusalem?
The city definitely existed before David; it was occupied by the Jebusites, who were not conquered in the time of Joshua (Joshua 15:63) until they were defeated by David. It existed even in Abraham's time, when it was called Shalem (Gen.14:18).
Ask a follow-up question