How do I connect to the Teamforge Postgres database?

For onsite installations, use the commands below.

Note these commands will only work for onsite installations - direct server access is required.
    ssh to Teamforge server
    sudo su - postgres
    psql -d ctfdb