removing a whole bunch of unused db code

Change-Id: I3890abd8c4d24a7b5397fd9da2eadb495d3b3743
Merge "removing a whole bunch of unused db code" into production