changed string array of IPs to dynamic arraylist
getting IP list from DB
removed main() for fun