Implemented temporary routine to fix database Factors.