Added db authentication, with hashing