added a method to added IP's to the database