Better handling of boolean. Include text that gave json decode error for better troubleshooting
Enable autocommit to avoid select returning old data