Quota insert and update