voms-db-deploy refactoring