db_write()'s log message is more helpful