Updated examples to not use the deprecated db.authenticate

JAVA-1366