change directory structure, add pagecontents table, add pages route