Added data server thread and started query response logic