use name instead of dbname