fixed behavior of dropDatabase when profiling is on #546

fixes #546