Some cleanup of no longer used functions
Not using the database for that so that removing the repository directory will automatically recreate it