View Connections:

SELECT * FROM pg_stat_activity;

#Create Database

https://www.postgresql.org/docs/9.0/static/sql-createdatabase.html

CREATE DATABASE name

#Show Tables

\dt

#Docker

Connection

psql -h 127.0.0.1 -p 5432 -U postgres