added txLimit placeholder
improved error message, look for multiple device records
tweaked for pg JSON field, cleanup
resolved merge