Rewrite, connection pool, tests, examples