set up database authentication.