Allow switching the database.

There is now internal datastream._switch_database method which allows
you to switch the database. Useful when you want to make sure testing
is happening in a special database.