Command-line script to add hostnames to the db