Cleaned up the mysql base file