updates mysql and index files