diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index 6190309..9d130d7 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -927,14 +927,17 @@ dependencies = [
name = "drcr"
version = "0.1.0"
dependencies = [
+ "indexmap 2.6.0",
"serde",
"serde_json",
+ "sqlx",
"tauri",
"tauri-build",
"tauri-plugin-dialog",
"tauri-plugin-shell",
"tauri-plugin-sql",
"tauri-plugin-store",
+ "tokio",
]
[[package]]
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index f267ddd..49e3241 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -18,11 +18,13 @@ crate-type = ["staticlib", "cdylib", "rlib"]
tauri-build = { version = "2", features = [] }
[dependencies]
-tauri = { version = "2", features = [] }
-tauri-plugin-shell = "2"
+indexmap = { version = "2", features = ["serde"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
+sqlx = { version = "0.8", features = ["json", "time"] }
+tauri = { version = "2", features = [] }
tauri-plugin-dialog = "2"
+tauri-plugin-shell = "2"
tauri-plugin-sql = { version = "2", features = ["sqlite"] }
tauri-plugin-store = "2"
-
+tokio = { version = "1", features = ["sync"] }
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 5ddbd40..44aa338 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -16,32 +16,41 @@
along with this program. If not, see .
*/
+mod sql;
+
use tauri::{AppHandle, Builder, Manager, State};
use tauri_plugin_store::StoreExt;
+use tokio::sync::Mutex;
use std::fs;
-use std::sync::Mutex;
struct AppState {
db_filename: Option,
+ sql_transactions: Vec