puts hosts to database, checks dupes