Performance improvements

Removed the unncessary overhead of creating edge between documents and
users and collection objects as well.