Major updates

- Adapted sharedoc.php to connect to live database
- adapted index.view.php and layout.php to implement filtering
- added query for filtering