Fixed a bug with the update process of the currencies that occured when no currencies are in the database
Fixed exception throwing in the DB class