DB/Misc: Some misc db fixes
DB/Misc: Fix up previous push.