Fix setting db variable.