Contest-2 bug fixed

This bug fix solves not only the problem relating to renaming tables but also avoid unnecessary reloading for other database and table operations too.