Use thread locals for DB connections.