fixing the stupid mixup between pwd and dbname