update tables for answers, js for appending answer