db structure changes and sidebar programming