GRANT ALL PRIVILEGES ON DATABASE yourdbname TO youruser;
sudo -u postgres createuser -e <name>
psql=# grant all privileges on database <dbname> to <username>