Denormalize database and handle multiple locations with same name

Refactored database to make it easier for handling multiple locations with same name. 

New method for finding locations and handle multiple locations properly.