added connection pool and initialisation