Added a way to add pages into the database