Db affect row bug