Get DB URL:

openproject config:get DATABASE_URL

Test DB Connection URL:

psql $(openproject config:get DATABASE_URL)