Fix bugs in setup_ubuntu.sh

Reflects splitting of requirements.txt into source-requirements.txt
and document-requirements.txt. Updates config before setting up
db tables so runtime tests pass.