cleaned up dbr.py a bit. About to start on hooking everything together.