For onsite installations, use the commands below.
ssh to Teamforge server sudo su - postgres psql -d ctfdb