changes to vm_helper, 0_constants and db.py