add query to insert new event