diary pages now save and read form database, added previous/next button