changing to find for database authentication