fix db variable name