connects db with projectspage