Update pool.py

fix db insert