many website, one setup, many databases


  I will need to host abound 500-1000 websites, all of them use drupal,
What I thought was, to make all of these websites point to a single setup of drupal and make them run from there.

 I thought of using different databases for each website..

 Do you think it'll work? Is there a better way to go about it?