Changed link for document editing and more

-Now, href points to ‘/edit?doc_id=###’
-Fixed SQL requests
-added links to create document and create group