made changes to dbpy