New script for maintenance on MySQL tables