db works every time in current state