Check out WebObjects. It comes with Enterprise Object Frameworks (which used to be a separate product) which allows you to work with databases easily. Sorting, retrieving, storing, so easy it's ridiculous.
With it you can either write Cocoa apps or WebObject apps (which is a whole other ball of wax).
And to boot, if you are a college student or work in a school/university it's only $99!! Now that's insane....