[Solved] Initial setup problems with connection to database

Is the db on a different box? can you connect via the psql command?

maybe something like http://www.thegeekstuff.com/2014/02/enable-remote-postgresql-connection/