Rewrite and promisify `Pool`.