fix type err in db; fix is_send err