Fix bug in sqlite_server.c

Change the tplit and tread methods to add a struct to save the cbuf
in each torrent.
Move the sqlite folder to torrent folder.
Merge branch 'master' of github.com:lucastsa/Composite
Fix bug during the merge.