Minor change in manageDB get locations and names function