Geometric applications of derived categories