Added SQL functionality to purchases (Incomplete)

App crashes on startup, presumably because of some issues with the
SQLite integration on the finance side. All parts of editpruchase are
stubbed out and ready for adding functionality