db variable corrected