Filter actions to store in database