Bug fix on simple_pool and ported run_with_connection()