Further UI changes and bug fixes

Changed database scheme for easier time handling
Added new UI elements
Fixed login bug where session would not be saved