[Fix] Remove unused function
Fix table name

Some mysql server is case sensitive.