added the get last stored proc for member and invoice