Hosts DB interlocks

DB now shouldn't crash when mass-editing hosts (i.e. assigning variables from a deploy)