fix typos and use connection pool