Bug fixes
Working code - missing styling
Database functions moved to summary page, session variables updates