Database renaming and consistency check functionality - in db_manipulation.py