Creates a new DatabaseConnection object using the provided connection parameters (host,port, user, password, database, name).
The returned object contains all necessary information to establish a connection to a PostgreSQL
database and can be used for further database operations.