A bunch of db changes
Signed-off-by:Joshua Dickerson <joshua.a.dickerson@gmail.com>