Added database stuff for projects and chapters.