Using adb to get/set input method settings

QUERY:

$ adb shell sqlite3 /data/data/com.android.providers.settings/databases/settings.db "select * from 'global' where name like '%input_method%';"

$ adb shell sqlite3 /data/data/com.android.providers.settings/databases/settings.db "select * from 'secure' where name like '%input_method%';"

DELETE:

$ adb shell sqlite3 /data/data/com.android.providers.settings/databases/settings.db "delete from 'global' where name like '%input_method%';"

$ adb shell sqlite3 /data/data/com.android.providers.settings/databases/settings.db "delete from 'secure' where name like '%input_method%';"

UPDATE:

$ adb shell sqlite3 /data/data/com.android.providers.settings/databases/settings.db "update 'global' set value='blabla' where name = 'default_input_method';"