SQL trigger use instance