finish building the table chatting in DB and its operations