Auto generate MySQL query statement and execute CRUD operations