Created interfaces for connection and connection pool.