login db communication working