implemented listDebts.php