write data into test.db
custom_proc and view avatar