support changing databases