Minor updates to dpdb.py