added UI API for db login