got rid of DummyDBProxy and made DBProxy work with null sessions
use dbproxy instead of dummydbproxy; properly cast idx