gs-pypi: correct directory structure in generated DB
add tools to manipulate package db