datalogging and saving in sqlite3 db file

repeater used read the comments for using the code