new sql for debugging; updated put_data method to deal with quotes