insert method
Implementation
Future<int> insert(Thread thread) async {
// debugPrint('insert avatar:' + message.avatar + ' conten:' + message.content + ' timestamp:' + message.timestamp);
return await database!.insert(tableThread!, thread.toMap());
}