chatting with database