First round of database building and testing for logging in