save page to db