title: Web framework for an application utilizing existing database?
body: <p>A legacy web application written using PHP and utilizing MySql database needs to be rewritten completely. However, the existing database structure must not be changed at all.</p>
  
  <p>I'm looking for suggestions on which framework would be most suitable for this task? Language candidates are Python, PHP, Ruby and Java.</p>
  
  <p>According to many sources it might be challenging to utilize rails effectively with existing database. Also I have not found a way to automatically generate models out of the database.</p>
  
  <p>With Django it's very easy to generate models automatically. However I'd appreciate first hand experience on its suitability to work with legacy DBs. The database in question contains all kinds of primary keys, including lots of composite keys.</p>
  
  <p>Also I appreciate suggestions of other frameworks worth considering.</p>