Install postgresql and create a user and database. The trick is to give the database and user the same name as the current user
sudo apt-get install postgresql
sudo su - postgres -c "psql -c \"create user $USER;\""
sudo su - postgres -c "createdb $USER"
Now as the current user you have your own personal database which doesn't require a password. Great for development.
psql
If the username is "ubuntu" you'll see:
ubuntu:~/environment/project_name $ psql
psql (10.10 (Ubuntu 10.10-0ubuntu0.18.04.1))
Type "help" for help.
ubuntu=>
TYSM this was really helpful