AHH ok there is the issue, the table should be called DB_PREFIX (whatever that is) braintree, TABLE_BRAINTREE must not have been defined properly in the installer and then created that., so simple fix rename that table