Consistency in database
Put getLocations in callback