now works also when key searched after does not exist in db