Move InsertFolder database interaction to repository