caching the DB connection.