move functionality of db2json into repo_management

The db2json script needs to be refactored and all functionality needs to be moved to the repo_management package. An entry_point can be created, once all functionality has been moved.