Invalid JSON string in database records