Activate coverage testing of db package.
Factor and test argument parser for migration scripts.

* Fix `path` argument.
DRY argument parsing in migration scripts.
Fix update_db shell script.

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