added error msg for missing file/username/pw/db