Update pool.py

add block height to db