diff --git a/Cargo.toml b/Cargo.toml
index e11518a..c189eed 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,7 +23,7 @@ chrono = { version = "0.4", features = ["serde"] }
 
 sqlx = { version = "0.7", features = ["sqlite", "runtime-tokio", "macros", "chrono"] }
 libsqlite3-sys = { version = "*", features = ["bundled"] }
-uuid = "1.6"
+uuid = { version = "1.8", features = ["v4"] }
 futures = "0.3"
 libc = "0.2"
 
diff --git a/Makefile b/Makefile
index 8654a1e..e290b69 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+export DATABASE_URL=sqlite://${PWD}/emgauwa-dev.sqlite
+
 sqlx:
 	cargo sqlx database drop -y
 	cargo sqlx database create
diff --git a/src/db/macro.rs b/src/db/macro.rs
index 62092ea..a849fd0 100644
--- a/src/db/macro.rs
+++ b/src/db/macro.rs
@@ -97,7 +97,7 @@ impl DbMacro {
 		conn: &mut PoolConnection<Sqlite>,
 		new_name: &str,
 	) -> Result<DbMacro, DatabaseError> {
-		sqlx::query!("UPDATE relays SET name = ? WHERE id = ?", new_name, self.id,)
+		sqlx::query!("UPDATE macros SET name = ? WHERE id = ?", new_name, self.id,)
 			.execute(conn.deref_mut())
 			.await?;