CLOUDSTACK-2486: Deleting the host_details and inserting them back can lead to mysql deadlock

- Changing the correct details dao. Instead of using separate delete and insert, we will use ON DUPLICATE KEY UPDATE to avoid the MySQL deadlock