Database Flush

Uses MySQL Admin tool to flush database tables, logs and status to avoid corruption.