diff --git a/src/graphql/schema.js b/src/graphql/schema.js
index d46a4c1635ae7f865d289f8b5ff00466236e6755..372ae4f015344b04be49928eeb3b7df7fcfd85c7 100644
--- a/src/graphql/schema.js
+++ b/src/graphql/schema.js
@@ -123,7 +123,16 @@ const createGroupIfLegal = (user, args) => {
         if(admin_list.indexOf(user.id) == -1)
             throw "illegal request : you must have admin rights over a group to create a subgroup of that group";
         return(getAvailableGroupUID(args.uid).then(rasUID => {
-            
+            knex('groups').insert({
+                uid : rasUID,
+                parentuid : args.parentuid,
+                createdAt : knex.fn.now(),
+                updatedAt : this.createdAt,
+                name : args.name,
+                website : args.website,
+                description : args.description,
+                school : args.school
+            });
         })); 
     });
 };