cleaned up get hosts to be from local db