Easier way to check if the database is authenticated.