Fixed bugg in database and update unit tests
Merge branch 'Voting' of https://github.com/RudigerRoach/301_main_emma into Voting