using blob to sort out character encoding woes on JSON data.  Some database optimisations