db adapter small change