small db updates

small updates to the db
- Mostly updates on foreign keys and what happens to them when the
parent gets deleted or modified
- Editted gdoc database to match current db schema