fixed typo in addTransaction in database handler