Installing with Debian package failing

I followed the installation instructions on Foreman :: Manual
but when it comes to run foreman-rake db:migrate it errors

“rake aborted!
PG::ConnectionBad: could not connect to server: Connection refused
Is the server running on host “localhost” ( and accepting
TCP/IP connections on port 5432?”
Am i missing something or do i need to maunally create the db before this??
No firewalls enabled

Foreman 2.1 fresh install

Distribution and version:
Debian 10
Other relevant data: