working db login