def METHOD_NAME(database_path, table, key, value):
  """Update a key in a database. The input is not sanitized, so make sure to use
  with trusted input key and value pair only."""
  sql_command_string = ('"UPDATE %s SET value=\'%s\' WHERE name=\'%s\'"') % (
      table, str(value), key)
  adb.run_shell_command(['sqlite3', database_path, sql_command_string])