fix database migrations