with saving in sqlite