old mysql db table fixer script