title: Prevent CakePHP from automatically connecting to database when instantiating model
body: <p>The DBA at my company has a script that automatically kills long-running database connections and queries on our production databases. I've written a CakePHP Shell application that runs in a loop, sort of like a daemon, that periodically needs to make database reads and writes. If it runs for too long, the database connection is closed by the maintenance script and my app errors out.</p>
  
  <p>Looking at the CakePHP source, it seems like when a model is instantiated, it automatically tries to connect to the appropriate database. Is there a way to connect to the database only when making a query, then disconnect?</p>