Fix RDS error on Modify state when syncing database