Optimize bucket name, enhance logging

Small optimization to bucket field updater: reuse the same ContentValues
and not needlessly convert to/from integer.
Also add a mechanism to store short messages in the database, in order to get
better information from bugreports.

b/6467624

Change-Id: I2777d58e5fefe98a0e91794ef25e1be0d2408304
2 files changed