Split states to facilitate separate mysql.