Fixing case sensitive of table names, would not work on mysql installs with lower_case_table_names = 0