finished up db relationships