Fixed db variable name