Script to automatically set up IP database