event action(query + insert)