add parameter for choosing which database for authentication

I had a mongodb instance with authentication in which backups stopped working because it was using the default database test. With this change I resumed the backups.