Improve database.yml parsing during graph creation; pass postgres password

Improve database.yml parsing during graph creation (user-use-graph and request-creation-graph).

Pass the postgres password using an environment variable to address issue 675.  Note that this is insecure on a multiuser system since any user can view the environment of the psql command.