bz19374: write device databases for hidden devices

Just because a device is hidden doesn't mean that we shouldn't write
it's database.  One example is changing the always_show setting to
off.  The new code checks to see if there's a write scheduled and if
so, does the write.