Worked on setting up pages and database logic