db_append_with_select_values function

Append data using atomic INSERT INTO with SELECT VALUES