Redirecting to Database trigger