implemented adding new spending item to the backend database