adds db authentication