Most of my content projects are custom and dynamic driven from a database (1000+ pages) with only a few static pages.

What is a good CMS I can use to give certain levels of access to users who are registered and logged in and paid to gain access? Also to customize the CMS to edit/add/delete rows in my custom database? This seems like the biggest task. Static pages are easy. Give me a lightweight CMS that I can use to point add/edit functions to my preexisting MySQL database.

It seems like all my projects are a simple database - what is good CMS with hooks to customize my needs?

On exiting, I like Drupal and WordPress (for what its worth) and not touching Joomla (aka Mambo).

Thanks for any feedback