completed removeIncome function and corrected a sql query bug in accounts