database deletion and renaming fix.