Fix Database Migration Errors