Implement a getDatabaseDSN helper