remove mysql logic