Modernizing Legacy HR Databases: When and How to Upgrade