Access DB as dict not as attributes part 5

Partially implements bp db-api-cleanup
Change-Id: Id34c20701ae0cae503c2218c9a6008d5e0bb0e76
Merge "Access DB as dict not as attributes part 5"