added task to get category_id in transactions
refactored code in order to the change in transactions table
removed unnecesary code
added spent at table
changed instance of filter