Derived Categories and the Genus of Curves