D-branes, derived categories, and Grothendieck groups