Fix the renaming generated files from Tables in database