I should add that I would highly recommend that you log out and then log back in after running this script. I've since learned that the SystemUIServer also uses the Launch Services database, as does the Finder, and for best results, you should log out and then back in. (The SystemUIServer handles the right side of your menu bar, with the menu extra items, and I believe it's also used to open files that you have in the right side of the Dock (which is why it would need to be using the Launch Services database).

Hope this helps.....
_________________________

Dual 2.7 GHz G5, 4.5 GB RAM; 17" MacBook Pro, 2 GB RAM