Index: database/drizzle/queries/users.ts
===================================================================
--- database/drizzle/queries/users.ts	(revision d4842f4212a093fc213ddbbf7ab9223c2785c450)
+++ database/drizzle/queries/users.ts	(revision 83fb5e20e4a24449997dabfce4e3017efabd0f4a)
@@ -4,5 +4,5 @@
 
 export async function createUser(db: Database, username: string, email: string, passwordHash: string) {
-    await db
+    const [newUser] = await db
         .insert(usersTable)
         .values({
@@ -10,5 +10,10 @@
             email: email,
             passwordHash: passwordHash,
+        })
+        .returning({
+            id: usersTable.id,
         });
+
+    return newUser?.id ?? null;
 }
 
@@ -29,5 +34,5 @@
 
 export async function isAdmin(db: Database, userId: number) {
-    const admin = await db
+    const [admin] = await db
         .selectDistinct()
         .from(adminsTable)
@@ -37,5 +42,5 @@
         .limit(1);
 
-    return admin.length ?? null;
+    return !!admin;
 }
 
@@ -55,5 +60,5 @@
 
 export async function setComponentSuggestionStatus(db: Database, suggestionId: number, adminId: number, status: string, adminComment: string) {
-    const result = await db
+    const [result] = await db
         .update(suggestionsTable)
         .set({
@@ -64,7 +69,10 @@
         .where(
             eq(suggestionsTable.id, suggestionId)
-        );
+        )
+        .returning({
+            id: suggestionsTable.id
+        });
 
-    return result.rowCount ?? null;
+    return result?.id ?? null;
 }
 
@@ -78,6 +86,8 @@
             componentType: componentType
         })
-        .returning({ id: suggestionsTable.id });
+        .returning({
+            id: suggestionsTable.id
+        });
 
-    return newSuggestion.id ?? null;
+    return newSuggestion?.id ?? null;
 }
