Added tons of db fixes and general rebalance updates.