minor API fix

forgot db variable