Add new struct to refer to records of logindb

logindb now has a loginuser member instead of multiple
members point to cookies, names, tokens etc.