Fix update_db shell script.

* The shell script should be replaced by an all-python script.