Unsecured public-facing database allowed anyone to access ID selfies for months