in reply to POE and DBI

How about connecting to one main database and then in the query you do: SELECT * FROM database_name.table_name WHERE bla bla bla... So you only need one database connection per process...