started building in logic to connect tables and added user auth