Some bug fixes for the device update db functions.