Changed Entity names Categories to Category & Spendings to SpendingItem
updated EntityController to a singleton.
fix compile error