store ipaddresses into db, db migrations