date init, table truncate, http null if no connection