more ut coverage

copy constructor of database will connect copy if original was also
connected.