Implemented simple price formatting for currencyEntry
Moved declaration of database variable so that the UI can use it as it is being initialized