setup database and push charNum and destroyAction to database