add logic on DB.