Fix this script up.

* Use real argument handling
* Don't require a SERVER_ID
* Convert to ID ourselves based on dbname not screwy WikiFactory::domain2id