split sqlite_snd code in a new file
close #11