Fix to use 'database' or 'dbname' in dsn.