added timeout to db modifications