Added a unique constraint to page_id in pages
Enabled the write ahead log