smdb.py: improvements to `smdb.py buf_size` and `smdb.py where`