started reworking mysql states