AcceptTask stored procedure