changes

redesigned database interaction. Laid groundwork for products