added error checks for currency table